<?php
    class indexController {

        function __construct() {
            $json = file_get_contents('php://input');
            $data = json_decode($json, true);
            print_r($data);
//            $data = [
//                'firs' => [0, 1, 3, 4]
//            ];
//            header('Content-Type: application/json; charset=utf-8');
//            echo json_encode(json_decode($_REQUEST));
        }

        public static function indexAction() {
//            print_r(__DIR__);
        }
    }